package cn.schoolwow.ams.domain.block.list.dao.databaseTable;

import cn.schoolwow.ams.domain.block.router.AbstractRouterBlock;

public abstract class DatabaseTableListBlockConfigAware extends AbstractRouterBlock {
    @Override
    public String getBlockUniqueName(){
        getAMSCacheBlockConfig();
        DatabaseTableListBlockOption databaseTableListBlockOption = (DatabaseTableListBlockOption) cacheBlockConfig;
        String blockUniqueName = "databaseTableListBlock|"+cacheBlockConfig.projectName
                +"|"+ databaseTableListBlockOption.daoName
                +"|"+ databaseTableListBlockOption.tableName;
        return blockUniqueName;
    }

    public abstract DatabaseTableListBlockOption getAMSBlockConfig();
}
